package com.bangyu.monitor.core.schedule;

import cn.hutool.core.date.DateUtil;
import lombok.extern.slf4j.Slf4j;
import org.springframework.scheduling.annotation.Scheduled;
import org.springframework.stereotype.Component;

/**
 * @Auther: zhangxue
 * @Date: 19/11/13 22:53
 * @Description: 每天统计标准静态值
 */
@Slf4j
@Component
public class StandardStaticScheduler {


    @Scheduled(cron = "0 30 1 * * ?")
    public void task(){
        DateUtil.today();

    }

    public static void main(String[] args) {
        System.out.println(DateUtil.today());
    }
}
